package com.oxy.action;

import java.util.List;

import com.oxy.common.constant.ActionConstant;
import com.oxy.action.util.ActionUtil;
import com.oxy.model.Pager;
import com.oxy.model.po.TestPO;
import com.oxy.svc.TestSvc;

public class TestAction extends BaseAction {
	public String index() {
		return ActionConstant.RESULT.SUCCESS;
	}

	public String list() {
		String ret = ActionConstant.RESULT.SUCCESS;
		TestSvc svc = (TestSvc)this.getSvcHolder().getSvcByIfClass(TestSvc.class);
		
		Pager pager = ActionUtil.preparePager(svc.getTestCount());
		this.getParaOut().put(ActionConstant.PARA_OUT.COMMON.PAGER, pager);
		
		List<TestPO> list = null;
		list = svc.list(pager);
		this.getParaOut().put(ActionConstant.PARA_OUT.TEST.TEST_LIST, list);
		return ret;
	}
}
